package com.hw.springcloud.global;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.hw.springcloud.entities.CommonResult;

/**
 * @Classname: GlobalSentinelHandle
 * @Description: 全局限流方法
 * @Date: 2021/12/16
 * @Author: HuWei
 */
public class GlobalSentinelHandle {

    /**
     * 限流方法一
     */
    public static CommonResult sentinelHandle1(BlockException blockException){
        return new CommonResult(500,"全局sentinel自定义限流返回,方法1");
    }

    /**
     * 限流方法二
     */
    public static CommonResult sentinelHandle2(BlockException blockException){
        return new CommonResult(500,"全局sentinel自定义限流返回,方法2");
    }
}
